<portlet return="array" return_var="frags"  cache="60" 
  			 limit="30" showpages="0"  recursive="-1"  conditions="deleted[]=0" 
			 model="Frag" order="RAND()"></portlet><!-- conditions="cate_id[]=105&cate_id[]=106"  -->
			 
<?php 
$frags =  $frags['datalist'];
$frag_index = 0;
?>
			{{if $expired && !empty($appinfo)}}
					<section style="padding:10px 20px;border-bottom:1px solid #ddd;"><p style=" color:red;font-size: 16px;">使用的135编辑器插件已过期，功能被锁定。请管理员联系QQ285694665续期。</p></section>
			{{elseif empty($userinfo)}}
				<section style="padding:10px 20px;border-bottom:1px solid #ddd;"><p style=" color:red;font-size: 16px;">使用的135编辑器插件体验版，请管理员联系QQ285694665获取正式授权，解锁更多功能。</p></section>
			{{/if}}
			<ul  class="editor-template-list ui-portlet-list" style="padding-top: 5px;">
				
			{{loop $stylelist $item_all}}
				<?php $item=$item_all['EditorStyle']; ?>
			<li id="style-{{$item['id']}}" data-click="{{$item_all['Favorite']['click_nums']}}" data-time="{{strtotime($item_all['Favorite']['updated'])}}" {{if $item['rules']}}data-rules="{{$item['rules']}}"{{/if}} 
{{if $item['summary']}} data-content="{{str_replace('"','',$item['summary'])}}" data-title="ID:{{$item['id']}},{{$item['name']}}" data-trigger="hover" data-placement="right" data-container="body" data-toggle="popover"{{else}} data-placement="right"  data-container="body" data-toggle="tooltip" title="ID:{{$item['id']}},{{$item['name']}},{{$item_all['Favorite']['name']}}" {{/if}}
class="style-item {{if $item['brush_image']}}brush-image{{/if}} {{if $item['cate_id'] > 49}} cate-{{$item['cate_id']}} {{/if}} {{loop $item_all['Tag'] $tag}}  tagtpl-{{$tag['id']}} {{/loop}}" data-id="{{$item['id']}}">
				
				{{if $item['brush_image']}}
					<img data-id="{{$item['id']}}" data-role="guide-img" title="{{$item['name']}}" data-src="{{$item['coverimg']}}" />
				{{elseif $item['cate_id'] > 49}}
					{{if $item['cover_width']}}
						<section class="_135editor" data-tools="135编辑器" data-id="{{$item['id']}}"><section style="text-align:center;"><section style="display:inline-block;width:{{$item['cover_width']}}px;"><img data-id="{{$item['id']}}" data-role="guide-img" class="lazy" style="max-width:100%;width:{{$item['cover_width']}}px;" title="{{$item['name']}}" data-src="{{$item['coverimg']}}" /></section></section></section>
					{{else}}
						<section class="_135editor" data-tools="135编辑器" data-id="{{$item['id']}}"><p style="text-align:center;"><img data-id="{{$item['id']}}" data-role="guide-img" title="{{$item['name']}}" class="lazy" data-src="{{$item['coverimg']}}" /></p></section>
					{{/if}}
				{{else}}
					<?php $content = lazyloadimg($item['content']);
					 $content =  parseFragContent($content,$frags[$frag_index],$frag_index);  ?>
					<section class="_135editor" data-tools="135编辑器" data-id="{{$item['id']}}">{{$content}}</section>
				{{/if}}
					</li>
			{{/loop}}
		</ul>
		
		<div id="load-more-style" class="alert alert-warning m0">
			
		</div>